package com.shahe.GirlsDay.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

import com.shahe.GirlsDay.LogActivity;
import com.shahe.GirlsDay.R;
//import com.example.fragmenttabhosttest.R;
import com.shahe.GirlsDay.util.StaticClass;

public class NoteFragment extends Fragment {
	public static EditText note;

    @Override
    public void onAttach(Activity activity) {
        // TODO Auto-generated method stub
        super.onAttach(activity);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.log_note, null);
        note = (EditText)view.findViewById(R.id.et_log_note);
        if(!LogActivity.oneDayInfo.getNote().equals(" ")){
        	note.setText(StaticClass.note);
        }
        
        
        //StaticClass.note = note.getText().toString();
        return view;
    }
}
